<?php

class Doctrine_Model_TipoSesionDao extends Doctrine_Model_BaseDao {
    
     public function obtenerTodos() {
        return $this->getEntityManager()
                        ->createQuery('select c from Doctrine_Model_Entities_TipoSesion c')
                        ->getResult();
    }
    
    
    public function obtenerPorId($id) {
        return $this->getEntityManager()->find('Doctrine_Model_Entities_TipoSesion', $id);
    }
}
